<?php

	require('includes/connect.php');

	session_start();

	$fb = $_POST['fb'];

	$twitter = $_POST['twitter'];

	$user_id = $_SESSION['user_id'];

		$qry = mysql_query("insert into social_networks (`user_id`,`fb_id`,`twitter_id`) values ('$user_id', '$fb', '$twitter')");

		header('location:settings.php');

?>